using System.Text.RegularExpressions;

namespace Wikey.Transformation
{
    public class ExpressionFinder
    {
        /// <summary>
        ///  Regular expression built for C# on: Sat, Nov 7, 2009, 06:54:50 PM
        ///  Using Expresso Version: 3.0.3276, http://www.ultrapico.com
        ///  
        ///  A description of the regular expression:
        ///  
        ///  \${.+}\$
        ///      Literal $
        ///      {
        ///      Any character, one or more repetitions
        ///      }
        ///      Literal $
        ///  
        ///
        /// </summary>
        public static Regex CommandRegex = new Regex(
              @"\${(?<Command>\w+):{1}(?<Parameters>\w+\s*=\w+)}{1}\$",
            RegexOptions.CultureInvariant
            | RegexOptions.Compiled
            );

        //public static Regex 

        // This is the replacement string
        public static string regexReplace ="$& [${Day}-${Month}-${Year}]";


        //// Replace the matched text in the InputText using the replacement pattern
        // string result = regex.Replace(InputText,regexReplace);

        //// Split the InputText wherever the regex matches
        // string[] results = regex.Split(InputText);

        //// Capture the first Match, if any, in the InputText
        // Match m = regex.Match(InputText);

        //// Capture all Matches in the InputText
        // MatchCollection ms = regex.Matches(InputText);

        //// Test to see if there is a match in the InputText
        // bool IsMatch = regex.IsMatch(InputText);

        //// Get the names of all the named and numbered capture groups
        // string[] GroupNames = regex.GetGroupNames();

        //// Get the numbers of all the named and numbered capture groups
        // int[] GroupNumbers = regex.GetGroupNumbers();


    }
}